﻿using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BBICMS.Model.ViewModel.Back
{
    public class TeamListVM
    {
        public IQueryable<Team> Teams { get; set; }
        public int PageSize { get; set; }
        public int PageNumber { get; set; }
        public IPagedList<Team> OnePageOfTeams {
            get
            {
                if (this.Teams != null)
                {
                    return this.Teams.ToPagedList(PageNumber, PageSize);
                }
                return null;
            }
        }
    }
}
